package com.butang.utils;

import com.butang.pojo.Analysis;
import com.butang.pojo.MetaTagResult;
import org.springframework.stereotype.Service;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.List;

/**
 * ClassName: CcSataus
 * Package: com.butang.utils
 * Description:
 *
 * @Author BuTang
 * @Create 2023/7/7 9:43
 * @Version 1.0
 */


public class CcSataus {//把十进制转换为十六位二进制并补齐
    public static void ccSataus(MetaTagResult metaTagResult, List<Analysis> list) {
        String value = DataConversion.decimalToBinary(Integer.valueOf(metaTagResult.getTagValue()));

        Timestamp timestamp = new Timestamp(System.currentTimeMillis());

//        TimeStamp,
        Analysis analysis = new Analysis(metaTagResult.getTagID(), timestamp, value);
        list.add(analysis);

    }


}
